﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using TesteSharepointNovo.App_Start;

namespace TesteSharepointNovo.Models
{
    public class DefaultConnection : DbContext
    {
        public DbSet<Curriculo> Curriculos { get; set; }

        public DbSet<Certificacao> Certificacoes { get; set; }

        public DbSet<Formacao> Formacoes { get; set; }

        public DbSet<Experiencia> Experiencias { get; set; }

        public DbSet<Tecnologia> Tecnologias { get; set; }

        public DbSet<Lingua> Linguas { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<DefaultConnection, Configuration>());
        }
    }
}